STEP 11: How about quarters? Since we randomly choose the values of the coins, it is possible that there aren't any!

  • In LOGIC, click , and drag out Get Maximum. This tool looks for the highest value stored in a list.
  • Rename the variable from my_var to max_coin and change the argument in max() to coins.
  • From drag out Variable Display and rename it from my_display to max_display.
  • Replace the variable argument in .Display() with max_coin and the y-coordinate with 100.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)